package com.fd.cloud.fdftp.fileHandle;

import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

@Component
public class MultiThreadReadByLine {

    //@PostConstruct
    public  void startFtpClent(){
            System.out.println("====MultiThreadReadByLine");
            ///Users/admin/Downloads/filename_1_100000.txt
            String namePath="/home/dfs/zwt/bb.txt";
            //String namePath="C://Users//zhangwentao//Desktop/filename_1_100000.txt";
            FileReader fileReader = new FileReader(namePath,1024,1);
            fileReader.registerHanlder(new FileLineDataHandler());
            fileReader.startRead();

    }
}